package com.dowhere.controller;

import com.dowhere.service.RibbonHystrixService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RibbonHystrixController {
    @Autowired
    private RibbonHystrixService ribbonHystrixService;

    @GetMapping(value = "/say")
    public String say(@RequestParam String name) {
        return this.ribbonHystrixService.sayService(name);
    }
}
